package com.cg.slms.service;

import java.util.List;

import javax.annotation.Resource;

import com.cg.slms.dao.IStockinDao;
import com.cg.slms.dao.IStockorderDao;
import com.cg.slms.domain.Stockin;
import com.cg.slms.domain.Stockorder;


//实现类
	public class StockorderService implements IStockorderService {
		private IStockorderDao stockorderDao;
		
		public List<Stockorder> findStockorder(Stockorder stockorder) {
			return stockorderDao.findStockorder(stockorder);
		}
		
		public IStockorderDao getStockorderDao() {
			return stockorderDao;
		}
		public void setStockorderDao(IStockorderDao stockorderDao) {
			this.stockorderDao = stockorderDao;
		}

		public boolean addStockorder(Stockorder stockorder) {
			return stockorderDao.addStockorder(stockorder);
			
		}
	    
		public Stockorder findStockorderById(String id) {
			return stockorderDao.findStockorderById(id);
			
		}

		public boolean updateStockorder(Stockorder stockorder) {
			return stockorderDao.updateStockorder(stockorder);
		}

		public boolean deleteStockorderById(Stockorder stockorder) {
			return stockorderDao.deleteStockorderById(stockorder);
		}
	}



